﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Default.Master" AutoEventWireup="true"
    CodeBehind="ServiceEdit.aspx.cs" Inherits="AUV5.Web.Pages.ServiceEdit" ClientIDMode="Static" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/!js/service_edit.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class="usertitle">
        编辑
    </p>
    <asp:HiddenField ID="hfAspSessID" runat="server" />
    <asp:HiddenField ID="hfAuth" runat="server" />
    <div class=" fl main_left">
        <div class="serviceinfobar">
            <p class="serviceinfotxt">
                以下带 <span>* </span>的项目为必填项
                <br />
                <span id="lbMessage" class="color" runat="server"></span>
                <%-- <asp:Label ID="lbMessage" class="color" Text="<ul><li>asd<f/li></ul>" runat="server" />--%>
            </p>
            <div class="servicetable">
                <p>
                    <label>
                        我可以</label>
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="serviceinput required" MaxLength="70" />
                    <span><span class="color lineh">*</span>需要
                        <asp:DropDownList ID="ddlPrice" runat="server">
                            <asp:ListItem Value="5" Text="5" />
                            <asp:ListItem Value="15" Text="15" />
                            <asp:ListItem Value="25" Text="25" />
                            <asp:ListItem Value="50" Text="50" />
                        </asp:DropDownList>
                        元</span>
                    <asp:HiddenField ID="hfadddate" runat="server" />
                </p>
                <p>
                    <label>
                        分类</label>
                    <asp:DropDownList runat="server" ID="ddlCategory" CssClass="serviceselect">
                        <asp:ListItem Text="Category1" />
                        <asp:ListItem Text="Category2" />
                    </asp:DropDownList>
                    <span><span class="color lineh">*</span>请选择您所要发布的服务类别！</span>
                </p>
                <p>
                    <label>
                        描述</label>
                    <asp:TextBox ID="txtDescription" Rows="4" Columns="40" TextMode="MultiLine" runat="server"
                        MaxLength="500" CssClass="servicetextarea" />
                    <span class="infoprompt">针对您所发布的服务的描述！</span>
                </p>
                <%-- <p>
                        <label>
                            说明</label>
                        <asp:TextBox ID="txtInstruction" Rows="4" Columns="40" TextMode="MultiLine" runat="server"
                            MaxLength="500" CssClass="servicetextarea" />
                    </p>--%>
                <p>
                    <label>
                        热门关键字</label>
                    <asp:Repeater ID="repHotKey" runat="server">
                        <ItemTemplate>
                            <span class="lineh"><a href="#" class="selectkey">
                                <%#(string)Container.DataItem%></a> </span>
                        </ItemTemplate>
                    </asp:Repeater>
                </p>
                <p>
                    <label>
                        关键字</label>
                    <asp:TextBox ID="txtTags" runat="server" CssClass="serviceinput" MaxLength="100" />
                    <span class="infoprompt">关键字之间以逗号分隔，且长度不大于五个汉字！</span>
                </p>
                <p>
                    <label>
                        完成所需时间</label>
                    <%--<asp:TextBox ID="txtDuration" runat="server" CssClass="serviceinput required" MaxLength="3" />--%>
                    <asp:DropDownList ID="ddlDuration" runat="server">
                        <asp:ListItem Value="1" Text="1" />
                        <asp:ListItem Value="2" Text="2" />
                        <asp:ListItem Value="3" Text="3" />
                        <asp:ListItem Value="4" Text="4" />
                        <asp:ListItem Value="5" Text="5" />
                        <asp:ListItem Value="10" Text="10" />
                        <asp:ListItem Value="15" Text="15" />
                        <asp:ListItem Value="20" Text="20" />
                        <asp:ListItem Value="30" Text="30" />
                    </asp:DropDownList>
                    <span><span class="color lineh">*</span>完成这项服务所需的时间，单位为“天”！</span>
                </p>
                <div class="uploadimg">
                    <label>
                        上传图片</label>
                    <div class="upload">
                        <div class="uploadswf">
                            <input type="file" name="uploadify" id="uploadify" /></div>
                        <div class="uploadbtn">
                            <a id="clearQueue" onclick="$('#uploadify').uploadifyClearQueue();" href="#">
                                <img src="/!images/btn_disupload.png" /></a>
                        </div>
                        <asp:HiddenField ID="hfpath" runat="server" />
                        <span class="starlineh"><span class="starlineh starcolor">*</span>上传要求，最少一张，最多三张，宽和高都不得小于75！</span>
                        <div class="clear">
                        </div>
                        <p id="fileQueue">
                        </p>
                        <div id="showQueue" class="showimg">
                        </div>
                        <p class="clear">
                        </p>
                    </div>
                </div>
                <div class="uploadimg">
                    <label>
                        上传视频</label>
                    <div class="upload">
                        <div id="videoUpload" runat="server">
                            <div class="uploadswf">
                                <input type="file" name="uploadify" id="videouploadify" />
                            </div>
                            <div class="uploadbtn">
                                <a onclick="$('#videouploadify').uploadifyClearQueue();" href="#">
                                    <img src="/!images/btn_disupload.png" /></a>
                            </div>
                            <asp:HiddenField ID="hfvideopath" runat="server" />
                            <span class="starlineh">请选择不大于200M的avi,mov,mpg,mp4,flv文件</span>
                            <p id="videoQueue">
                            </p>
                            <img id="imgVideoTip" src="/!images/uploadvideotxt.jpg" alt="" />
                        </div>
                        <div class="showimg" id="videoManage" runat="server">
                            <asp:Image ID="imgVideo" ImageUrl="" runat="server" />
                            <asp:ImageButton ID="ibtnVideoDel" Style="vertical-align: bottom" ImageUrl="/!images/btn_videodel.png"
                                runat="server" OnClick="ibtnVideoDel_Click" />
                        </div>
                        <p>
                        </p>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <p>
                    <label>
                        是否限时</label>
                    <asp:CheckBox ID="ckbTimeLimited" runat="server" />
                </p>
                <p id="time">
                    <label>
                        持续时间</label>
                    <asp:TextBox ID="txtLastTime" runat="server" />天
                </p>
                <p>
                    <label>
                        是否限量</label>
                    <asp:CheckBox ID="cbNeedStock" runat="server" />
                </p>
                <p id="stock">
                    <label>
                        库存</label>
                    <asp:TextBox ID="txtStock" runat="server" />
                </p>
                <p class="shoppingornno">
                    <label>
                        是否需要快递</label>
                    <asp:CheckBox ID="chkNeedShipping" runat="server" />
                </p>
                <div id="ship">
                    <p>
                        <label>
                            运费</label>
                        <asp:TextBox ID="txtNativeCharge" runat="server" CssClass="serviceinput" /><span><span
                            class="color lineh">*</span>请输入所需运费</span>
                    </p>
                    <%--<p>
                            <label>
                                外埠</label>
                            <asp:TextBox ID="txtOtherCharge" runat="server" CssClass="serviceinput" /><span class="lineh">请输入至外地运费</span>
                        </p>--%>
                </div>
                <p class="servicebtn">
                    <%--<asp:Button Text="提交" runat="server" ID="submit" OnClick="submit_Click" />--%>
                    <asp:ImageButton ID="ibtnSubmit" runat="server" OnClick="submit_Click" ImageUrl="/!images/btn_saveoff.jpg"
                        onmouseover="MM_swapImage('ibtnSubmit','','/!images/btn_saveon.jpg',5)" onmouseout="MM_swapImgRestore()"
                        alt="保存" onfocus="MM_swapImage('ibtnSubmit','','/!images/btn_saveon.jpg',5)" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
